import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

export function sendPwdChangeEmail(data) {
  return request({
    url: '/user/sendPwdChangeEmail',
    method: 'post',
    data
  })
}

export function updatePwd(data) {
  return request({
    url: '/user/updatePwd',
    method: 'post',
    data
  })
}

export function register(data) {
  return request({
    url: '/user/register',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/user/info',
    method: 'get'
  })
}

export function userCount() {
  return request({
    url: '/user/count',
    method: 'get'
  })
}


export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}
